package com.java;
import java.util.Arrays;


public class Content1 {

    private static int x;

    public static void main(String[] args) {

        Content1 content1 = new Content1();

        content1.printArray();

    }

    private void printArray() {

        //string类型数组默认值打印
        String[] strArr = new String[5];
        System.out.println("strArr:" + Arrays.toString(strArr));

        //int类型数组默认值打印
        int[] intArr = new int[4];
        System.out.println("intArr:" + Arrays.toString(intArr));

        //局部变量必须进行初始化
        int tmp;
//        System.out.println("tmp:" + tmp);

        //int类型成员变量默认值打印
        System.out.println("x:" + x);

        //多维数组初始化只需初始化最左边的维度,即后面的维度表示类型,如下中的数组元素类型为int[][]

        int[][][] a = new int[4][][];
        System.out.println("a:" + Arrays.toString(a));


    }

}
